KDIR := /lib/modules/$(shell uname -r)/build

obj-m += spinlock_deadlock.o

all:
	make -C $(KDIR) M=$(PWD) modules
	gcc test_deadlock.c -o test_deadlock

clean:
	make -C $(KDIR) M=$(PWD) clean
	rm -f test_deadlock